#include "CProduction_While.h"

#include "../NativeGrammar.h"

CTokenPtr CProduction_While::Reduce( CProductionArgPtr pArgs )
{
	CStatementWhilePtr pWhileStatement= CStatementWhile::create(pArgs->getArg<CExpression>(3), pArgs->getArg<CStatementList>(5));

	pWhileStatement->eval();

	return pWhileStatement;
}